package com.ruoyi.goods.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

public class Goods extends BaseEntity {

    private int id;

    //名称
    private String name;

    //规格
    private String spec;

    //高度
    private double mattressStandardHeight;

    //单位
    private String unit;

    //价格
    private double price;

    //商品图片
    private String url;

    //详情
    private String details;

    //产品类型
    private int goodsTypeId;

    private GoodsType goodsType;

    private int status;

    private int brandId;

    private int brandPersonId;

    private Date createTime;

    private Date updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public double getMattressStandardHeight() {
        return mattressStandardHeight;
    }

    public void setMattressStandardHeight(double mattressStandardHeight) {
        this.mattressStandardHeight = mattressStandardHeight;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public int getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(int goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public GoodsType getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(GoodsType goodsType) {
        this.goodsType = goodsType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public int getBrandPersonId() {
        return brandPersonId;
    }

    public void setBrandPersonId(int brandPersonId) {
        this.brandPersonId = brandPersonId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", spec='" + spec + '\'' +
                ", mattressStandardHeight=" + mattressStandardHeight +
                ", unit='" + unit + '\'' +
                ", price=" + price +
                ", url='" + url + '\'' +
                ", details='" + details + '\'' +
                ", goodsTypeId=" + goodsTypeId +
                ", goodsType=" + goodsType +
                ", status=" + status +
                ", brandId=" + brandId +
                ", brandPersonId=" + brandPersonId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
